package com.scut.project.client;/**
 * 功能描述
 *
 * @author MyFellingIsBetter
 * @date 2024/11/06  21:30
 */

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.io.InputStream;

/**
 *@ClassName LLMClient
 *@Description TODO
 *@Author MyFellingIsBetter
 *@Date 2024/11/6 21:30
 *@Version 1.0
 */
@Component
public class LLMClient {
    @Value("${llm.api-url}")
    private String apiUrl;
    @Value("${llm.api-key}")
    private String apiKey;

    public String getFeedback(String question, String answer) {
        // 伪代码：调用大语言模型API获取反馈
        return "反馈文本";
    }

    public int getScore(String answer) {
        // 伪代码：调用大语言模型API获取评分
        return 8;
    }
}


